package com.Mt.Controller;

import com.Mt.Service.MtCommodityMenuService;
import com.Mt.pojo.MtCommodityMenu;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (MtAntiepidemic)表控制层
 *
 * @author ww
 * @since 2020-12-04 14:47:39
 */

@RequestMapping("MtMenu")
@RestController
public class MtCommodityMenuController {
    /**
     * 服务对象
     */
    @Reference
    private MtCommodityMenuService mtCommodityMenuService;

    @GetMapping("all")
    public List<MtCommodityMenu> all(){
        return mtCommodityMenuService.selAll();
    }

}